<template>
 <el-upload
         list-type="picture-card"
         :file-list="fileList"
         action="#"
         >
         <span>上传图片</span>
         <i class="
el-icon-circle-close
 iconClose"></i>
       </el-upload>
</template>

<script>
export default {
  data () {
    return {
      fileList: [], // 图片地址设置为数组
      showDialog: false, // 控制显示弹层
      imgUrl: ''
    }
  }
}
</script>

<style  scoped>
::v-deep .el-upload--picture-card {
  position: relative;
  width: 100px;
  height: 60px;
  line-height: 60px;
  margin-top: -22px;
  margin-left: 5px;
}
.iconClose{
  position: absolute;
  font-size: 20px;
  top: -8px;
  right: -8px;
}
 /* /deep/ .el-upload--picture-card{
  width: 120px;
  height: 30px;
} */
</style>
